<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath =      request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

/* 
String Demand =        request.getAttribute("Demand").toString();
String EndtTime =	   request.getAttribute("EndtTime").toString();
String Field =	       request.getAttribute("Field").toString();
String Introduce =	   request.getAttribute("Introduce").toString();
String IsContract =	   request.getAttribute("IsContract").toString();
String Levels =	       request.getAttribute("Levels").toString();
String PName =	       request.getAttribute("PName").toString();
String Payment =       request.getAttribute("Payment").toString();
String Period =	       request.getAttribute("Period").toString();
String Pid =	       request.getAttribute("Pid").toString();
String StartTime =	   request.getAttribute("StartTime").toString();
String Status =	       request.getAttribute("Status").toString();
String TchName =       request.getAttribute("TchName").toString();
String Workplace =     request.getAttribute("Workplace").toString();
*/
%>

<%@ taglib prefix="s" uri="/struts-tags" %> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">   
    <title>My JSP 'edit_project.jsp' starting page</title>    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
 
  <body> 
 <s:form action="projectAction!modifyProject">
   <s:set name="project_edit" value="#request.project_edit"/>
   <s:hidden name="project.pid" value="%{#project_edit.pid}"></s:hidden>
   <s:hidden name="project.tchId" value="%{#project_edit.tchId}"></s:hidden>
   
  	<s:textfield label="项目名" name="project.name" value="%{#project_edit.name}"></s:textfield>
  	<s:label label="项目状态" ></s:label>
    <s:radio name="project.status" list="#{'apply':'报名中','ing':'正在进行','over':'已结束'}" value="#project_edit.status"></s:radio>
    <s:textfield label="项目报名开始时间" name="project.startTime " value="%{#project_edit.startTime}"></s:textfield>   
    <s:textfield label="项目报名截止时间" name="project.endtTime " value="%{#project_edit.endtTime}"></s:textfield>   
    <s:label label="项目简介" ></s:label>
    <s:textarea  name="project.introduce" cols="100" rows="10" wrap="true" value="%{#project_edit.introduce}"></s:textarea>
    <s:textfield label="项目研究领域关键词" name="project.field" value="%{#project_edit.field}"></s:textfield>
    <s:textfield label="项目周期" name="project.period" value="%{#project_edit.period}"></s:textfield>
    <s:textfield label="项目开发地点" name="project.workplace" value="%{#project_edit.workplace}"></s:textfield>
    <s:textfield label="项目薪酬" name="project.payment" value="%{#project_edit.paymend}"></s:textfield>  
    <s:label label="招收标准或需求" ></s:label><br/>
    <s:textarea  name="project.demand" cols="100" rows="10" wrap="true" value="%{#project_edit.demand}"></s:textarea>
   	<s:label label="是否签订合同" ></s:label>
    <s:radio name="project.isContract" list="#{1:'是',2:'否',3:'面议'}" value="#project_edit.isContract"></s:radio>
    <s:textfield label="项目级别" name="project.levels" value="%{#project_edit.Levels}"></s:textfield>
    <s:submit label="保存"></s:submit>  
</s:form>

</body>
</html>
